<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The MongoPool class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongolog.setmodule.html">MongoLog::setModule</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongopool.getsize.html">MongoPool::getSize</a></div>
 <div class="up"><a href="mongo.miscellaneous.html">Miscellaneous</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.mongopool" class="reference">

 <h1 class="title">The MongoPool class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL mongo &gt;= 1.2.3)</p>


  <div class="section" id="mongopool.intro">
   <h2 class="title">简介</h2>
   <div class="warning"><strong class="warning">Warning</strong>
    <p class="para">
     The current (1.3.0+) releases of the driver no longer implements pooling.
     This class and its methods are therefore deprecated and should not be
     used.
    </p>
   </div>
  </div>


  <div class="section" id="mongopool.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">MongoPool</strong>
     </span>
     {</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">int</span><span class="methodname"><a href="mongopool.getsize.html" class="methodname">getSize</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span><span class="methodname"><a href="mongopool.info.html" class="methodname">info</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">bool</span><span class="methodname"><a href="mongopool.setsize.html" class="methodname">setSize</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$size</code></span>
   )</div>

   }</div>


  </div>
 <div class="section">
  <h2 class="title">更新日志</h2>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>版本</th>
       <th>说明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>1.3.0</td>
       <td>
        This functionality has been removed and no longer does anything other
        than emit deprecation warnings. This class is only kept around for
        backwards compatability and will be removed in the near future.
       </td>
      </tr>

      <tr>
       <td>1.2.11</td>
       <td>
       Emits <strong><code>E_DEPRECATED</code></strong> when used.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>

 </div>

 



















<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="mongopool.getsize.html">MongoPool::getSize</a> — Get pool size for connection pools</li><li><a href="mongopool.info.html">MongoPool::info</a> — Returns information about all connection pools.</li><li><a href="mongopool.setsize.html">MongoPool::setSize</a> — Set the size for future connection pools.</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongolog.setmodule.html">MongoLog::setModule</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongopool.getsize.html">MongoPool::getSize</a></div>
 <div class="up"><a href="mongo.miscellaneous.html">Miscellaneous</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
